﻿@echo off

set ADDIN_PATH="%~dp0%TGComacAddin.dll"
set REGASM_X86="C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe"
set REGASM_X64="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe"

CLS
echo %ADDIN_PATH%
echo This batch file must be executed with administrator privileges!
echo. 

set REGASM_PATH86=%REGASM_X86%
set REGASM_PATH64=%REGASM_X64%

%REGASM_PATH86% /codebase %ADDIN_PATH%
%REGASM_PATH64% /codebase %ADDIN_PATH%

:end
